package com.gsafety.wellsfort.dao.course;

import com.gsafety.wellsfort.domain.model.course.WorkPublishRange;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkPublishRangeDAO {
    int deleteByPrimaryKey(Integer id);

    int deleteByWorkPublishId(Integer workPublishId);

    int insert(WorkPublishRange record);

    int insertSelective(WorkPublishRange record);

    WorkPublishRange selectByPrimaryKey(Integer id);

    List<WorkPublishRange> selectByWorkPublishId(Integer workPublishId);

    int updateByPrimaryKeySelective(WorkPublishRange record);

    int updateByPrimaryKey(WorkPublishRange record);

    List<WorkPublishRange> selectByCondition(@Param("workPublishId") Integer workPublishId, @Param("schoolId") Integer schoolId, @Param("classId") Integer classId);
}